// 全局SCSS变量
@use 'sass:color';

// 颜色变量
$primary-color: #409eff;
$text-color: #303133;
$text-color-secondary: #606266;
$text-color-placeholder: #909399;
$border-color: #dcdfe6;
$background-color: #f5f7fa;
$white: #ffffff;
$gray-100: #f5f5f5;
$gray-200: #e9ecef;
$shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);

// 混合器
@mixin card-style {
  background: $white;
  border-radius: 8px;
  box-shadow: $shadow-light;
  border: 1px solid $border-color;
}

@mixin input-style {
  border-radius: 4px;
  border: 1px solid $border-color;
  padding: 0 8px;
  height: 32px;
  line-height: 32px;
  font-size: 14px;
  transition: border-color 0.3s;
  background-color: $white;
  box-shadow: none;
  outline: none;

  &:focus {
    border-color: $primary-color;
    box-shadow: 0 0 0 2px rgba($primary-color, 0.2);
    outline: none;
  }

  &:hover {
    border-color: $primary-color;
  }
}

@mixin button-style {
  border-radius: 4px;
  font-weight: 500;
}

@mixin page-container {
  min-height: 100vh;
  background: $gray-100;
  padding: 24px;
}

@mixin page-header {
  margin-bottom: 32px;
  text-align: center;
  color: $text-color;

  .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: $text-color;

    .title-icon {
      font-size: 32px;
    }
  }

  .page-subtitle {
    font-size: 16px;
    color: $text-color-secondary;
    margin: 0;
  }
}
